import 'babel-polyfill'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import '@/assets/style/index.css'
import 'element-ui/lib/theme-chalk/index.css'
import eveUi from 'eve-ui'
import 'eve-ui/lib/eve-ui.css'
import '@/assets/style/font-icon/eve-font-icon.css'
import '@/theme'// 自定义公共样式放在当前样式之下，否则可能自定义样式不生效
import config from '@/config'
import utils from 'eve-ui/tools/eve-utils.umd.min.js'
import '@/router/lib/routerDefend'
import Storage from 'vue-ls'
Vue.use(ElementUI)
Vue.use(eveUi)
Vue.use(Storage, config.storageOptions)
Vue.config.productionTip = false
Vue.prototype.$Message = ElementUI.Message
Vue.prototype.$utils = utils
Vue.prototype.$size = config.size
Vue.prototype.$labelSuffix = config.labelSuffix
config.mock && require('@/mock')
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
